package com.eascs.web.o2o.report.service;

import java.util.List;

import javax.inject.Inject;

import org.springframework.stereotype.Service;

import com.eascs.web.o2o.report.dao.BaseReportDao;

@Service
public class BaseReportService {

	//protected final Logger logger = LoggerFactory.getLogger(getClass());
	@Inject
	BaseReportDao baseReportDao;

	public List<Object[]> findObjectsList(String sql){
		return baseReportDao.findObjectsList(sql);
	}
	
	public <T> void excuteProReport (String sql){
		baseReportDao.excuteProReport(sql);
	}
	
	public List<Object[]> findObjectsList(String sql,Object... params){
		return baseReportDao.findObjectsList(sql,params);
	}
	
	public void isnertNewBusiness(String isnertSql,Object... params){
		baseReportDao.isnertNewBusiness(isnertSql,params);
	}
	
	public void deleteNewBusiness(String deleteSql,String param){
		baseReportDao.deleteNewBusiness(deleteSql,param);
	}
	
	public List<Object[]> findOracleObjectsList(String sql,Object... params){
		return baseReportDao.findOracleObjectsList(sql,params);
	}
	
	public List<Object[]> findObjectsListForService(String sql,Object... params){
		return baseReportDao.findObjectsListForService(sql,params);
	}
	
	public void excuteForService(String insertSql,Object... params){
		baseReportDao.excuteForService(insertSql, params);
	}
	
}
